/**
 * 具名返回保存的cookie值
 * @param name 需要返回的cookies名
 * @returns cookie
 */
export function getCookies(name:string){
    let arr = document.cookie.split(";")
    let arrMap:Map<string,string> = new Map()
    arr.forEach(el => {
        let keyValue = el.split("=")
        arrMap.set(keyValue[0].trim(),keyValue[1].trim())
    })
    return arrMap.get(name)
}